package com.sun.mybatisplus.bean;

import lombok.Data;

@Data
public class R<T> {
    private String code;
    private String msg;
    private T data;

    public R(String code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public R(String code,String msg,T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public R(){

    }
    public static<T> R<T> ok(T data){
        return new R<>("200","success",data);
    }
}
